{include file="public/toper"/}
<style>
    .layui-unselect{width: 190px;}
</style>
<div class="x-body">
    <form action="" method="post" class="layui-form" id="forms">
        <input type="hidden" name="spec_id" value="{$item['spec_id']}">
        <div class="layui-form-item">
            <label for="type_name" class="layui-form-label">
                <span class="x-red">*</span>规格名称
            </label>
            <div class="layui-input-inline">
                <input type="text" value="{$item['name']}" id="type_name" name="name" required="" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span class="x-red">*</span>10个字符以内
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span class="x-red">*</span>选择类型</label>
            <div class="layui-input-block">
                <select name="type_id" lay-verify="">
                    {volist name="list" id="vo"}
                    <option value="{$vo.type_id}"
                            {if condition="$vo['type_id'] eq $item['type_id']"} selected="selected"{/if}
                    >{$vo['name']}
                    </option>
                    {/volist}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span class="x-red">*</span>规格项</label>
            <div class="layui-input-inline"><textarea name="spec_item" rows="5" cols="25" required="" lay-verify="required" autocomplete="off">{$item['items']}</textarea></div>
            <div class="layui-form-mid layui-word-aux">
                <span class="x-red">*</span>一行为一个规格项，多个规格项用换行输入
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <button  class="layui-btn" lay-filter="formSubmit" lay-submit="">提交</button>
        </div>
    </form>
</div>
{include file="public/footer"/}